import { aliyunOSSUrl } from './config'

export const requireImg = (name) => {
  const url = process.env.NODE_ENV === 'development' ? '/static/images/' : aliyunOSSUrl

  return url + name
}
